package com.jumi.microservice.constant;

import com.jumi.microservice.common.exception.BusinessExceptionAssert;

/**
 * - - - - - - - - - - - - - - -
 *
 * @author liuz
 * @date 2020/7/18 17:35
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
public enum ExceptionEnum implements BusinessExceptionAssert {

    /**
     * 返回状态码集
     */
    FAIL_CHANGE(500,"数据转换异常"),
    FAIL_NULL(500, "获取数据为空"),
    FAIL_NULL_MAIL(500, "站内信信息为空推送失败"),
    FAIL_NULL_APP(500, "APP信息为空推送失败"),
    FAIL_NULL_SMS(500, "短信信息为空推送失败");

    private final Integer code;

    private final String message;

    ExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
